package com.shadow.study.java.base.dy.study1;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class ZFBPay implements IPay{

    public static final String ZFB_CODE = "zfb";

    @Override
    public boolean supports(final String code) {
        return ZFB_CODE.equals(code);
    }

    @Override
    public void pay() {
        log.info("发起了蚂蚁支付");
    }
}
